import Layout from '@/layout'

/**
 * 商品管理
 */
const goodsRouter = {
  path: '/goods',
  component: Layout,
  name: 'Goods',
  meta: {
    title: '商品管理',
    icon: 'list'
  },
  children: [
    {
      path: '/category',
      name: 'Category',
      component: () => import('@/views/goods/category/category'),
      meta: {
        title: '分类管理',
        noCache: true
      }
    },
    {
      path: '/brand',
      name: 'Brand',
      meta: {
        title: '品牌管理',
        noCache: true
      },
      component: () => import('@/views/goods/brand/brand')
    },
    {
      path: '/spec',
      name: 'Spec',
      meta: {
        title: '规格管理',
        noCache: false
      },
      component: () => import('@/views/goods/spec/spec')
    },
    {
      path: '/item',
      name: 'Item',
      meta: {
        title: '商品列表',
        noCache: false
      },
      component: () => import('@/views/goods/goods/goods')
    }
  ]
}

export default goodsRouter
